﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Daemon.Model
{
	[Table("user_role")]
	public partial class UserRole
	{
		[Key]
		[Column("Id")]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public int Id { get; set; }

		public int UserId { get; set; }

		public int RoleId { get; set; }

		[ForeignKey("UserId")]
		public AdminUser AdminUser { get; set; }

		[ForeignKey("RoleId")]
		public AdminRole AdminRole { get; set; }
	}
}
